package com.da.javatest.interview.basic.init;

/**
 * @author JokerDa.
 * @date 2025/4/16 15:17
 * Description:
 */
public class T {
    public static int k = 1;
    public static T t = new T();
    public static int n = 99;
    public int j = 100;

    static {
        System.out.println("静态代码块：k=" + k + ",n=" + n + ",t.j=" + t.j);
    }

    public T() {
        System.out.println("构造方法：k=" + k + ",n=" + n + ",j=" + j);
    }
    {
        System.out.println("普通代码块：k=" + k + ",n=" + n + ",j=" + j);
    }

    public static void main(String[] args) {

    }
}
